<#-- @ftlvariable name="entity" type="com.xci.edu.core.entity.EduStudentTrainLog" -->
<#include "/sys/_layout.ftl">
<#assign allowExport=sysWeb.auth("background.eduStudentTrainLog.export")/>
<!doctype html>
<html>
<head>
    <@pageHeader/>
</head>
<body>
<@pageLoading/>
<div id="gridtoolbar">
    <form id="gridform" class="jxlayout-form form-inline jxform">
        <div class="form-group">
            <input name="studentName" class="form-control w-250px" placeholder="请输入查询姓名" autocomplete="off">
        </div>
        <button class="btn btn-primary ml-5" type="submit">
            <i class="fa fa-search"></i> 查询
        </button>
        <div class="btn-group">
        <@echo test=allowExport>
            <a class="btn btn-default" onclick="curd.exportData()">
                <i class="icon-share-alt"></i> 导出
            </a>
        </@echo>
        </div>
    </form>
</div>
<table id="grid" data-options="form:'#gridform',toolbar:'#gridtoolbar'">
    <thead>
    <tr>
        <th data-options="title:'学员姓名',field:'studentName',width:80,align:'left',sortable: false"></th>
        <th data-options="title:'操作日期',field:'operateDateText',width:100,align:'left',sortable: false"></th>
        <th data-options="title:'培训消息',field:'msg',width:200,align:'left',sortable: false"></th>
    </tr>
    </thead>
</table>
<@pageFooter/>
<script>
jx.ready(function () {
    window.curd = new jx.GridCurd('#grid', {
        title: '学员培训日志',
        dialogWidth: '600px',
        dialogHeight: '400px',
        api: {
            grid: '/background/eduStudentTrainLog/grid',
            export: '/background/eduStudentTrainLog/export'
        }
    });
});
</script>
</body>
</html>